﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<volva.Models.WebUser>" %>
<%@ Import Namespace="volva.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <%
        WebUser user = ViewData["user"] as WebUser;
        
        // kdslfdsf
         %>


    <h2>Stillingar</h2>
    
        <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Villur komu upp við innsetningu myndbands") %>
        <%= ViewData["message"] %>
                           
                <div class="editor-label">
                  Netfang
                </div>
                <div class="editor-field">
                    <input class="text" id="email" name="email" type="text" value="<%= (user.email) %>" />
                </div>
                <div class="editor-label">
                    Heimilisfang
                </div>
                <div class="editor-field">
                    <input class="text" id="address" name="address" type="text" value="<%= (user.address) %>" />
                </div>
                <div class="editor-label">
                    Póstnúmer
                </div>
                <div class="editor-field">
                    <input class="text" id="areaCode" name="areaCode" type="text" value="<%= (user.areaCode) %>" />
                </div>
                    Sjá efni bannað börnum
                <div class="editor-label">
                    <input id="nsfw" name="nsfw" type="checkbox" value="true" <%= (user.nsfw == true ? "checked" : "") %> />
                </div>
                
                
                <p>
                    <input type="submit" value="Breyta upplýsingum." class="btn" />
                </p>
        </div>
    <% } %>


</asp:Content>
